package com.barbeque.mall.controller.wx;

import com.barbeque.mall.bean.advertise.VO.MyBaseRespVo;
import com.barbeque.mall.bean.wx.feedback.WxMarketFeedback;
import com.barbeque.mall.service.wx.WxFeedBackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bai
 * @since 2022/07/20 22:34
 */
@RestController
@RequestMapping("wx/feedback")
public class WxFeedbackController {
    @Autowired
    WxFeedBackService wxFeedBackService;
    @RequestMapping("submit")
    public MyBaseRespVo submit(@RequestBody WxMarketFeedback wxMarketFeedback){

        // 插入反馈信息
        wxFeedBackService.insertFeedBackInfo(wxMarketFeedback);

        return MyBaseRespVo.ok();
    }
}
